<?php


namespace api\web\model;


use think\Model;

class NewsModel extends Model
{
    protected  $name = 'news';
    //更新时间戳
    protected $autoWriteTimestamp = 'datetime';
    //获取数据
    public function getSwitchArr($value){
        $statuc = ['1'=>'是','2'=>'否'];
        return $statuc[$value];
    }

}